package com.tuo51.core.repositories;

import com.tuo51.core.domain.org.Classes;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ClassesRepository extends JpaRepository<Classes, String>, JpaSpecificationExecutor<Classes> {

    List<Classes> findAllByOrgId(String orgId);

    List<Classes> findAllByOrgIdAndDeleted(String orgId, Boolean delete);

    Classes findByOrgIdAndId(String orgId, String classId);

    Classes getByOrgIdAndName(String orgId, String name);
}
